export function require(url,method,options){
  //let token = wx.getStorageSync('token')
  return new Promise((resolve,reject)=>{
    wx.request({
      url:'https://qichao.top:7443/MES'+url,
      /*
      取消token机制
      header:{
        "Authorization":token?token:undefined
      },
      */
      method,
      ...options,
      success:(res)=>{
        resolve(res)
      },
      fail:(err)=>{
        reject(err)
      }
    })
  })
}